#include "Sa2dDom.h"

render::render(){

}

const double render::getFps() {
	return fps;
}

std::vector<windowSettings*>::iterator render::getMywindows() {
	std::vector<windowSettings*>::iterator it;
	return it;
}

const string render::getName() {
	return name;
}

const float render::getScale() {
	return scale;
}

const int render::getWin_qty() {
	return win_qty;
}

void render::setFps(double fps) {
	this->fps = fps;
}

void render::setName(string name) {
	this->name = name;
}

void render::setScale(float scale) {
	this->scale = scale;
}

void render::setWin_qty(int win_qty) {
	this->win_qty = win_qty;
}

void render::addWindow(windowSettings *window){
	mywindows.push_back(window);
}

windowSettings* render::getFirstWindow(){
	return mywindows[0];
}

string render::toString(int indent) {
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "render:\n";
	returnString << tabs << "name: " << name << "\n";
	returnString << tabs << "scale: " << scale << "\n";
	returnString << tabs << "fps : " << fps << "\n";
	returnString << tabs << "window qty: " << win_qty << "\n";

	vector<windowSettings*>::iterator ite;

	   for ( ite = mywindows.begin(); ite < mywindows.end(); ite++ ) {
	      returnString << "\n" << (*ite)->toString(indent+1);
	   }

	return returnString.str();
}


